﻿#region Using

using Common.Base;

#endregion

namespace GameLogic.External
{

    #region Using

    #endregion

    public class BuildCommand : ICommand
    {
        public BuildCommand(Position position, BuildingType buildingType, Identifiable player)
        {
            this.Position = position;
            this.BuildingType = buildingType;
            this.Player = player;
        }

        public BuildingType BuildingType { get; private set; }

        public Position Position { get; private set; }

        public Result ExecuteOn(ICommandExecutor executor)
        {
            return executor.ExecuteCommand(this);
        }

        public Identifiable Player { get; private set; }
    }
}